Unlock the power of European football data
The Premier League Python library provides a unified interface to access comprehensive football data across Europe’s top 5 leagues. Whether you’re building machine learning models, analyzing team performance, or creating data-driven applications, this library gives you everything you need.Match statistics
Access detailed match-level statistics with 100+ metrics per game, including xG, passing, defensive actions, and possession data
League standings
Retrieve current and historical league tables with comprehensive team statistics dating back decades
Player leaders
Track top scorers and assist providers across all supported leagues with detailed breakdowns
Transfer data
Monitor incoming and outgoing transfers for every team with historical transfer window data
Supported leagues
Access data from Europe’s premier football competitions:- Premier League (England)
- La Liga (Spain)
- Serie A (Italy)
- Bundesliga (Germany)
- Ligue 1 (France)
- EFL Championship (England)
Key capabilities
Machine learning ready
Generate ML-ready datasets with customizable historical aggregation:Flask API server
Deploy a production-ready REST API in seconds:AWS Lambda deployment
Deploy serverless APIs with pre-configured Lambda functions and S3 integration:Multiple export formats
Export data in the format that suits your workflow:- CSV - For spreadsheet analysis
- JSON - For web applications
- PDF - For formatted reports with color-coded sections
Match statistics
TheMatchStatistics class provides access to extensive game data with 100+ statistical fields per match:
- Expected Goals (xG, xAG, PSxG)
- Shooting (total shots, shots on target, shot/goal creating actions)
- Passing (completion %, progressive passes, key passes)
- Defensive (tackles, interceptions, blocks, clearances)
- Possession (touches, carries, take-ons, dribbles)
- Discipline (fouls, cards, offsides)
League standings
TheRankingTable class fetches current and historical league tables:
- Premier League: from 1947
- La Liga: from 1929
- Serie A: from 1929
- Bundesliga: from 1963
- Ligue 1: from 1945
Player leaders
ThePlayerSeasonLeaders class tracks top performers:
Transfer data
TheTransfers class provides comprehensive transfer window data:
- Premier League: from 1946
- La Liga: from 1928
- Serie A: from 1946
- Bundesliga: from 1963
- Ligue 1: from 1945
Installation extras
The library supports optional dependencies for specialized features:Next steps
Quickstart
Get up and running in 5 minutes with a working example
Installation
Detailed installation guide with all optional dependencies